package com.zzw.design.chain;

/**
 * @author zzw
 * @see
 * @since 2018/3/26
 * @description 接口描述：处理请求
 */
public interface Ratify {

    // 处理请求
    public Result deal(Chain chain);

    /**
     * 接口描述：对request和Result封装，用来转发
     */
    interface Chain {
        // 获取当前request
        Request request();

        // 转发request
        Result proceed(Request request);
    }

}
